<script type="text/javascript" src="<?php echo base_url();?>../../../../jquery-1.5.1.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>../../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>../../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>../../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>../../../../ui/jquery.ui.autocomplete.js"></script>
<link type="text/css" href="<?php echo base_url();?>../ui-lightness/jquery.ui.all.css" rel="stylesheet"/>
<style type="text/css">.ui-autocomplete-loading{
background: white url(../../../../images/ui-anim_basic_16x16.gif) right center no-repeat}</style>
<title>Twin Tulipware</title>
<script type="text/javascript">
$(function()
{
$("arisan").autocomplete(
	{
	source:function(req,add)
		{
		$ajax({
			url:"<?php echo site_url(admin_views/arisan/arisan);?>",
			dataType:'json',
			type:'POST',
			data:req,

			success:function(data)
				{
				if(data.response = 'true')
				{
				add.(data.message);
				}
				},
				 error:function(XMLHttpRequest)
					{
				alert(XMLHttpRequest.responseText);
					}
			})
		} 
	})
});
</script>

<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');?></head>
<div id="page1">
<div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
</div>

	<div id="page">
	<div id="page-bgtop">
		<div id="content">
        <div class="post">  <h2 class="title"> Arisan</h2>
        <table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="center">
<tr>
<td  align='left' style='width:25%' >Search
</td>
<td><?php echo form_input(array('name'=>'arisan', 'id'=>'intid_arisan'));?></td>
</tr>
</table>
 <table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="center">
<tr>
<?php /*if ($privilege == 1) */echo "<td  align='left' style='width:75%' ><img  src='".base_url()."images/img10.png' align='absmiddle'/>".anchor('arisan/add', 'Tambah Data')."</td>";/* else echo ""*/;?>
<td align="right" style="width:75%" ><b><?php //echo "Jumlah Data : ". $jumlah_data;?></b></td></tr>
</table>
		  <table width="100%" border="0" cellpadding="1" cellspacing="1" id="data" align="center">
    
    <thead>
        <tr  align="center"  class="table">
           <th width="32" >No</th>
            <th width="245" >Nama Barang</th>
            <th width="165">Wilayah</th>
            <th width="148">Harga Arisan</th>
             <th width="116" >Uang Muka</th>
			<th width="54" >Cicilan</th>
			

			<th >Aksi</th>
        </tr>
    </thead>
    <tbody>
	
    <!-- ============isi ============ -->
		
		<?php 
			$i=1;
			foreach($arisan as $m) : 
			
		?>
        
      	<tr class='data' align='center'>
			<td ><?php echo $i++; ?></td>
			<td align='left'>&nbsp;<?php echo $m->strnama; ?></td>
			<td align='left'>&nbsp;Rp.&nbsp;<? echo $m->strwilayah; ?></td>
			<td align='left'>&nbsp;Rp.&nbsp;<?=number_format($m->intharga_arisan,2,",","."); ?></td>
            <td align='left'>&nbsp;Rp.&nbsp;<?=number_format($m->intuang_muka,2,",","."); ?></td>
           <td align='left'>&nbsp;<?php echo $m->intcicilan; ?>&nbsp;X</td>
            <td align="center" width="214"><a href="<?php echo base_url()?>arisan/detail/<?php echo $m->intid_arisan?>" title="Detail data"><img  src="<?php echo base_url()?>images/view.png" align="absmiddle"/> Detail</a>|
			<?php echo anchor ('arisan/edit/'.$m->intid_arisan, 'Edit'); ?>| <?php echo anchor ('arisan/delete/'.$m->intid_arisan, 'Hapus', array('onClick' =>"return confirm ('Apakah Anda yakin akan menghapus data ')")); ?></td>
        </tr>
		<?php endforeach; ?> 
    </tbody>
</table><table width="90%" border="0" cellpadding="1" cellspacing="1" id="data" align="center">
  <tr>
    <td align="left" ><?php echo $pagination; ?></td>
    <td align="right" style="width:75%" ></td>
  </tr>
</table>
		  </div>
			</div>
			
		</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_master'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->

